package com.fxm.constant;
/**
 * @author fxm
 * @version V1.0.0
 * @description: Redis相关Key汇总
 * @date 2020/12/30 15:49
 */
public class RedisConstants {

    public static final String COMMON_PREFIX = "fxm:answer:";

    public static class key {
        /**
         * 登陆签到
         */
        private static final String SIGN_IN = COMMON_PREFIX + "sign_in:";
        public static String  getSignIn(String openid) {
            return SIGN_IN + openid;
        }

        /**
         * 判断当天是否已经签到
         */
        private static final String IS_SIGN = COMMON_PREFIX + "is_sign:";
        public static String getIsSign(String openid) {
            return IS_SIGN + openid;
        }
        /**
         * 题库
         */
        public static final String QUESTION_ALL = COMMON_PREFIX + "question_all";
    }

}
